package com.dilidili.controller;

import com.dilidili.service.IVideoTagService;
import com.util.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * 【请填写功能名称】Controller
 * 
 * @author ruoyi
 * @date 2022-03-31
 */
@RestController
@RequestMapping("/system/tag")
public class VideoTagController
{
    @Autowired
    private IVideoTagService videoTagService;

    @GetMapping("/findAll")
    public CommonResult findAll(){
        return CommonResult.success(videoTagService.selectVideoTagfindAll());
    }
    @GetMapping("/findAllByUIdAndVid")
    public CommonResult findAllByUIdAndVid(Integer uId,Integer vId){
        List<Map> vs=videoTagService.selectVideoTagFindAllByUIdAndVid(uId,vId);
        System.out.println("---------------------");
        return CommonResult.success(vs);
    }

}
